
const request = require('../../../utils/request');
Component({

    behaviors: [],

    properties: {
        shop: Object
    },
    data: {
        list: [0,1,2,3],
        imgUrl:request.imgUrl
    }, // 私有数据，可用于模版渲染

    // 生命周期函数，可以为函数，或一个在methods段中定义的方法名
    attached: function () { },
    moved: function () { },
    detached: function () { },

    methods: {
        getTel() {
            wx.makePhoneCall({
                phoneNumber: this.data.shop.shopinfo.contact //拨打电话
              })
        },
        //查看所有菜式
        seeAllDishes(e) {
            console.log(e)
            wx.navigateTo({
                url: '../seeDishes/seeDishes'
            })
        },
        seeShopMess() {
            wx.navigateTo({
                url: '/pages/index/list/advance/advShopMess/advShopMess'
            })
        }
    }

})